package ooday01;

/**
 * 说明:
 *
 * @author:SuZhongHe
 * @date:2023/2/21
 **/
public class Car {
    String brand;
    String color;
    double price;

    Car() {

    }

    Car(String brand, String color, double price) {
        this.brand = brand;
        this.color = color;
        this.price = price;
    }

    void start() {
        System.out.println(brand + "牌的" + color + "颜色的" + price + "钱的汽车启动了");
    }

    void run() {
        System.out.println(brand + "牌的" + color + "颜色的" + price + "钱的汽车跑起来了");
    }

    void stop() {
        System.out.println(brand + "牌的" + color + "颜色的" + price + "钱的汽车停下来了");
    }


}
